# from gevent import monkey

# monkey.patch_all()

# import multiprocessing

# bind = "0.0.0.0:8080"

# # 启动的进程数
# workers = multiprocessing.cpu_count()
# worker_class = 'gevent'


import gevent.monkey
gevent.monkey.patch_all()

import multiprocessing

debug = True
loglevel = 'debug'
bind = '0.0.0.0:8080'
pidfile = 'logs/gunicorn.pid'
logfile = 'logs/debug.log'

#启动的进程数
workers = multiprocessing.cpu_count() * 2 + 1 
worker_class = 'gunicorn.workers.ggevent.GeventWorker'

x_forwarded_for_header = 'X-FORWARDED-FOR'